package com.dianping.cat.consumer.event.model.entity;

import com.dianping.cat.consumer.event.model.BaseEntity;
import com.dianping.cat.consumer.event.model.IVisitor;






public class Range
  extends BaseEntity<Range>
{
  private Integer m_value;
  private int m_count;
  private int m_fails;

  public Range() {}

  public Range(Integer value) { this.m_value = value; }




  public void accept(IVisitor visitor) { visitor.visitRange(this); }



  public boolean equals(Object obj) {
/*  30 */     if (obj instanceof Range) {
      Range _o = (Range)obj;

/*  33 */       if (!equals(getValue(), _o.getValue())) {
/*  34 */         return false;
      }

/*  37 */       return true;
    }

/*  40 */     return false;
  }


/*  44 */   public int getCount() { return this.m_count; }



/*  48 */   public int getFails() { return this.m_fails; }



/*  52 */   public Integer getValue() { return this.m_value; }






  public Range incCount() {
/*  65 */     this.m_count++;
/*  66 */     return this;
  }

  public Range incCount(int count) {
/*  70 */     this.m_count += count;
/*  71 */     return this;
  }

  public Range incFails() {
/*  75 */     this.m_fails++;
/*  76 */     return this;
  }

  public Range incFails(int fails) {
/*  80 */     this.m_fails += fails;
/*  81 */     return this;
  }


  public void mergeAttributes(Range other) {
/*  86 */     assertAttributeEquals(other, "range", "value", this.m_value, other.getValue());

/*  88 */     this.m_count = other.getCount();

/*  90 */     this.m_fails = other.getFails();
  }

  public Range setCount(int count) {
/*  94 */     this.m_count = count;
/*  95 */     return this;
  }

  public Range setFails(int fails) {
/*  99 */     this.m_fails = fails;
/* 100 */     return this;
  }

  public Range setValue(Integer value) {
/* 104 */     this.m_value = value;
/* 105 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/event/model/entity/Range.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */